Getting Started: Running the “USB
MSD Device” demo
To run this project, you will need one of the
following sets of hardware:
Explorer
16 (DM240001)
USB PICtail™ Plus Daughter Card
(AC164131)
PIC32MX USB Plug-In-Module (PIM) (MA320002)
This
section describes how to set up the various configurations of hardware to run
this demo.
Configuration: PIC24FJ256GB110 PIM + Explorer 16
1)
Before attaching the PIM to the Explorer 16 board, insure that the processor
selector switch (S2) is in the “PIM” position as seen in the image below.
2)
Short the J7 jumper to the “PIC24” setting
3)
Before connecting the PIM to the Explorer 16 board, remove all attached cables
from both boards. Connect the PIM to the
Explorer 16 board. Be careful when
connecting the boards to insure that no pins are bent or damaged during the
process. Also insure that the PIM is not
shifted in any direction and that all of the headers are properly aligned.
4)
On the SD Card PICTail Plus board, short JP1, JP2,
and JP3 on the side farthest from the SD Card holder. Depending on the revision of the board you
have the silk-screen on the board may incorrectly label the top as the
“HPC-EXP” setting. Please ignore this
silk screen and place the jumpers as described above and seen below.

5) Connect the SD Card PICTail Plus board to the HPC Explorer board in either the
female PICTail Plus connectors. Attach the board in the top bay of either of
the connectors.
6) On the USB PICTail
Plus board, short jumper JP1. Remove all
other shorts on the board.
7) Connect the USB PICTail
Plus board to either of the female PICTail Plus
connectors or on the card edge connector (J9) at the edge of the Explorer 16
board.
To
run this project, you will need to load the corresponding firmware into the
device. There are two methods available
for loading the demos: Precompiled demos and source code projects.
Precompiled
Demos are available in the “<Install Directory>\USB Precompiled Demos”
folders. Each demo should be prefaced
with the hardware platform it is compiled for.
Select the file that matches the hardware that you have and the demo
that you want to run. For more
information about how to load a precompiled project, please see the “Getting
Started – Loading a precompiled demo” guide.
The
source code for this demo is available in the “<Install Directory\usb_msd_device_demo” directory. In this directory you will find all of the
user level source and header files as well as project and workspace files. Find the project (*.mcp)
or workspace (*.mcw) file. Compile and program the demo code into the
hardware platform. For more help on how
to compile and program projects, please refer to the MPLAB® IDE help available
through the help menu of MPLAB (Help->Topics…->MPLAB IDE).
This
demo uses the hardware platform as an SD card reader. Connect the hardware platform to a computer
through a USB cable.
The
device should appear as a new drive on the computer named “
If
no SD Card is inserted in the SD Card PICTail Plus,
the following dialog will pop-up.
Once
a compatible card is inserted in the card reader, files can be read, deleted,
and manipulated like any other drive on the computer.
The Microchip name and logo, the Microchip logo,
MPLAB, and PIC are registered trademarks of Microchip Technology Incorporated
in the
PICDEM and PICTail are
trademarks of Microchip Technology Incorporated in the
Microsoft, Windows, and Windows Vista are either
registered trademarks or trademarks of Microsoft Corporation in the
SD is a trademark of the SD Association in the
U.S.A and other countries